package com.banmoon.mediator;

import java.util.Arrays;

public class BadLandlord extends AbstractLandlord{

    public BadLandlord(String name, Mediator mediator, House... houses) {
        super(name, mediator);
        super.setHouseList(Arrays.asList(houses));
    }

    @Override
    void sendMessage() {
        Mediator mediator = getMediator();
        mediator.getMessage(this, 1);
        mediator.getMessage(this, 2);
        mediator.getMessage(this, 3);
        mediator.getMessage(this, 4);
    }
}
